﻿#include "MessageMenuManager.h"

RelocPtr <MessageMenuManager*> g_messageMenuManager(0x058F2C58);

RelocAddr<_MBCreateStruct> MBCreateStruct(0x13F61F8);

RelocAddr<_MBReleaseStruct> MBReleaseStruct(0x13F764C);

void MessageMenuManager::ShowMessageBox(const char* header, const char* text)
{
    ShowMessageBoxEx(header, text, 0x14);
}

void MessageMenuManager::ShowMessageBoxEx(const char* header, const char* text, u32 flag)
{
    const MBParams params;
    MBCreateStruct(params, header, text, 0, flag);
    CALL_MEMBER_FN(this, MessageBox)(params);
    MBReleaseStruct(params);
}

RelocAddr<_Debug_Notification_int> Debug_Notification_int(0x2154848);

void Debug_Notification (const char* text)
{
    Debug_Notification_int(text, nullptr, 1, 0);
}